import React from 'react'
import { inject, observer } from 'mobx-react';
import DocumentTitle from "react-document-title";
import { withRouter } from "react-router-dom";
@inject('routing')
@observer
class CenterScene extends React.Component {

	componentWillMount() {
		document.title = '视频'
		debugger;
	}

	render() {
		const {  push } = this.props.routing;
		return (
			<DocumentTitle title='我是视频'>
			<div>
				<button onClick={() => {this.props.history.push({pathname:'/home',query:{name:'jack'}})}}>Go to Home</button>
				<p>Videos</p>
			</div>
			</DocumentTitle>
		)
	}
}

export default withRouter(CenterScene);